using Eno.Application.Dto;
using Eno.Domain.Repositories;

namespace Eno.Application.Services;

public class AppointRemoveService
{
    private readonly IAppointOrReomoveRoleRepository _service;

    public AppointRemoveService(IAppointOrReomoveRoleRepository appointOrReomoveRoleRepository)
    {
        _service = appointOrReomoveRoleRepository;
    }

    public async Task<int> AppointUserToRole(Guid rId, Guid uId)
    {
        return await _service.AppointRole(rId, uId);
    }

    public async Task<int> RemoveUserToRole(Guid rId, Guid uId)
    {
        return await _service.RemoveRole(rId, uId);
    }

}